import random

# 进入最后一轮的6个队伍
teams = [11, 12, 13, 14, 15, 16]
random.shuffle(teams)

# 机制轮盘
pattern = [[1, 3, 4, 2], [3, 5, 6, 4], [5, 1, 2, 6],
           [4, 6, 3, 1], [6, 2, 5, 3], [2, 4, 1, 5]]

# 替换轮盘中的值为队伍编号
for i in range(len(pattern)):
    for j in range(len(pattern[0])):
        pattern[i][j] = teams[pattern[i][j] - 1]
    print(str(pattern[i][0])+","+str(pattern[i][1]) +
          ","+str(pattern[i][2])+","+str(pattern[i][3]))
